<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>分类按钮动画修复</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        :root {
            --anzhiyu-shadow-blue: 0 8px 12px -3px #358bff80;
            --anzhiyu-shadow-red: 0 8px 12px -3px #f66580;
            --anzhiyu-shadow-green: 0 8px 12px -3px #18e7ae80;
            --anzhiyu-card-bg: #fff;
            --anzhiyu-white: #fff;
        }

        body {
            font-family: Arial, sans-serif;
            padding: 20px;
            max-width: 1200px;
            margin: 0 auto;
        }

        .categoryGroup {
            display: flex;
            flex-direction: row;
            justify-content: space-between;
            align-items: center;
            min-width: 200px;
            height: 100px;
            width: 100%;
            animation: slide-in 0.6s 0.2s backwards;
            margin-bottom: 20px;
        }

        .categoryItem {
            width: calc(100% / 3 - 0.33rem);
            height: 100%;
            margin-right: 0.5rem;
            overflow: hidden;
            transform: scale(1);
            transition: all 0.8s cubic-bezier(0.65, 0.15, 0.37, 1.19);
            border-radius: 12px;
            position: relative;
        }

        .categoryItem:last-child {
            margin-right: 0;
        }

        a.categoryButton {
            height: 100%;
            width: 100%;
            border-radius: 12px;
            display: flex;
            align-items: center;
            padding-left: 21px;
            font-weight: 700;
            font-size: 1.1rem;
            color: var(--anzhiyu-white);
            text-decoration: none;
            position: relative;
            overflow: hidden;
        }

        /* 图标初始状态 */
        a.categoryButton i {
            position: absolute;
            right: 0;
            top: 20%;
            font-size: 5rem;
            opacity: 0.2;
            filter: blur(2px);
            transform: rotate(15deg);
            transition: all 0.8s cubic-bezier(0.39, 0.575, 0.565, 1);
            width: 100px;
            text-align: center;
        }

        /* 悬停时图标状态 */
        .categoryItem:hover i {
            opacity: 0.8;
            font-size: 2.5rem;
            filter: blur(0);
            transform: rotate(0deg);
            top: 35%;
            transition-delay: 0.15s;
        }

        /* 按钮颜色样式 */
        a.categoryButton.blue {
            background: linear-gradient(to right, #358bff, #15c6ff);
            box-shadow: var(--anzhiyu-shadow-blue);
        }
        a.categoryButton.red {
            background: linear-gradient(to right, #f65, #ffbf37);
            box-shadow: var(--anzhiyu-shadow-red);
        }
        a.categoryButton.green {
            background: linear-gradient(to right, #18e7ae, #1eebeb);
            box-shadow: var(--anzhiyu-shadow-green);
        }

        /* 悬停时宽度变化 */
        .categoryItem:hover {
            width: 50%;
        }

        /* 下划线样式 */
        a.categoryButton:after {
            content: "";
            position: absolute;
            top: 50%;
            left: 21px;
            width: 1rem;
            height: 2px;
            background: var(--anzhiyu-white);
            border-radius: 1px;
            transform: translateY(10px);
        }

        @keyframes slide-in {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @media screen and (max-width: 768px) {
            .categoryGroup {
                display: none;
            }
        }
    </style>
</head>
<body>
    <div class="categoryGroup">
        <div class="categoryItem">
            <a class="categoryButton blue" href="/wechat/">
                <span class="categoryButtonText">加我微信</span>
                <i class="fas fa-comments"></i>
            </a>
        </div>
        <div class="categoryItem">
            <a class="categoryButton red" href="/categories/AI-%E5%BA%94%E7%94%A8%E6%95%99%E7%A8%8B/">
                <span class="categoryButtonText">人工智能</span>
                <i class="fas fa-fire"></i>
            </a>
        </div>
        <div class="categoryItem">
            <a class="categoryButton green" href="/categories/%E9%BB%91%E7%A7%91%E6%8A%80/">
                <span class="categoryButtonText">黑科技</span>
                <i class="fas fa-book-open"></i>
            </a>
        </div>
    </div>
</body>
</html> 